home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / balones.swf / scripts / frame_31 / DoAction.as
Text File  |  2013-04-24  |  1KB  |  44 lines

  1. _root.mcB.onLoad = function()
  2. {
  3.    this.funcInit = function()
  4.    {
  5.       this.nTypeCount = 0;
  6.       this.arrType = new Array();
  7.       _root.funcType();
  8.       _root.mcB.arrType[12] = 12;
  9.       this.nCount = 0;
  10.       _root.arrM = new Array();
  11.       i = 0;
  12.       while(i <= 7)
  13.       {
  14.          _root.arrM[i] = new Array();
  15.          j = 0;
  16.          while(j <= 7)
  17.          {
  18.             this.pathM = eval("this.mcM" + i + j);
  19.             this.pathM.onLoad = function()
  20.             {
  21.                ranN = Math.random();
  22.                if(ranN < 0.005)
  23.                {
  24.                   _root.arrM[i][j] = this.nType = _root.mcB.arrType[12];
  25.                }
  26.                else
  27.                {
  28.                   _root.arrM[i][j] = this.nType = _root.mcB.arrType[Math.floor(Math.random() * _root.nType)];
  29.                }
  30.                this.gotoAndStop(this.nType);
  31.                this.mcM.gotoAndStop("flD");
  32.             };
  33.             this.pathM.onLoad();
  34.             j++;
  35.          }
  36.          i++;
  37.       }
  38.    };
  39.    this.funcInit();
  40.    _root.funcinitMatchCheck();
  41. };
  42. _root.mcB.onLoad();
  43. _root.funcInitRound();
  44.